const koa = require('koa')
const bodyParser =require('koa-bodyparser')
const app = new koa();
const cors = require('koa2-cors')
const {router} = require("./controller")
app.use(cors());
app.use(bodyParser())
app.use(router.routes());
app.listen(3000, function () {
    console.log('koa listening on port 3000')
});
